package com.easy.domain;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 风亦未止
 * @date 2021/10/6 15:17
 */
@ApiModel(value = "com-easy-domain-Note")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "note")
public class Note implements Serializable {
    /**
     * 小纸条id
     */
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value = "小纸条id")
    private Long id;

    /**
     * 发布用户的openid
     */
    @TableField(value = "openid")
    @ApiModelProperty(value = "发布用户的openid")
    private String openid;

    /**
     * 内容
     */
    @TableField(value = "`desc`")
    @ApiModelProperty(value = "内容")
    private String desc;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE,value = "create_time")
    @ApiModelProperty(value="创建时间")
    private Date createTime;

    /**
     * 纸条类型 0小纸条 1学习打卡 2表白墙 3失物招领
     */
    @TableField(value = "`type`")
    @ApiModelProperty(value = "纸条类型 0小纸条 1学习打卡 2表白墙 3失物招领")
    private Integer type;

    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_OPENID = "openid";

    public static final String COL_DESC = "desc";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_TYPE = "type";
}